﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhao.Models.DTO;
using Zhao.Models.Entity;

namespace Zhao.IServer
{
    public interface IAreaServer : IBaseService<Area>
    {
        public List<AreaDto> GetAreas(int parentId = 0);
        public List<AreaDto> GetCity();
        /// <summary>
        /// 验证省市区层级关系是否合法
        /// </summary>
        /// <param name="provinceId">省ID</param>
        /// <param name="cityId">市ID</param>
        /// <param name="zoneId">区ID</param>
        /// <returns>是否合法</returns>
        public bool ValidateAreaHierarchy(int provinceId, int cityId, int zoneId);
    }
}
